POV-Ray : Newsgroups : povray.general : color to grey : Re: color to grey Server Time
19 May 2024 07:00:14 EDT (-0400)
  Re: color to grey  
From: Jan Walzer
Date: 1 Apr 2001 09:51:15
Message: <3ac73253@news.povray.org>
>     (0.297*Color.red + 0.589*Color.green + 0.114*Color.blue)
> This uses the same equation that POV uses internally.

Where does POV use a RGB2Grey computation do ?

--
background{rgb 1}camera{location<1,5,-2>look_at 0}#macro
m(a,b,i)#local d=(b-a)
/8;#local
e=vcross(d,y);#if(i)m(a-e,a+e+2*d,i-1)m(a+e,a+2*d-e,i-1)m(a+3*d-e,a+e
+3*d,i-1)m(a+3*d-e,a+5*d-e,i-1)m(a+6*d-e,a+e+6*d,i-1)m(a+8*d-e,a+e+8*d
,i-1)#else
cylinder{a,b,vlength(d)/3 pigment{rgb 0}}#end#end m(-4*x,2*x,4) // Jan
Walzer


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.